﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using MpSoft.Library.BUSS.Customers;

namespace MpSoft.Web.Controls.Customer
{
    public partial class BarSupport : System.Web.UI.UserControl
    {
        #region Method

        protected string GetSuppot()
        {
            var list = SupportBUSS.Support_List(1, 1);
            if (list != null)
            {
                StringBuilder sb = new StringBuilder();
                foreach (var obj in list)
                    sb.Append("<p><span class='yahoo'>" + obj.Title + ": <a rel='nofollow' href='ymsgr:SendIM?" + obj.Yahoo + "'><img src='http://opi.yahoo.com/online?u=" + obj.Yahoo + "&amp;m=g&amp;t=1&amp;l=us' alt='" + obj.Title + "' /></a></span><span class='sky'><img src='/Images/ico-phone.jpg'/><b>Hotline: </b><a rel='nofollow' href='skype:" + obj.Skyper + "?chat'><img src='/Images/ico-sky.jpg' title='" + obj.Title + "'>"+obj.Description+"</a></span></p>");
                return sb.ToString();
            }
            return "";
        }

        #endregion

        #region Event
        
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        #endregion
    }
}